<template>
  <router-view />
  <div class="da">
    <div class="box">
      <!-- <div class="header">头部</div>
      <div class="meddle">内容</div> -->
    </div>
    <div class="footer">
      <van-tabbar v-model="active"route>
        <van-tabbar-item icon="home-o" to="/index">标签</van-tabbar-item>
        <van-tabbar-item icon="search">标签</van-tabbar-item>
        <van-tabbar-item icon="friends-o">标签</van-tabbar-item>
        <van-tabbar-item icon="setting-o">标签</van-tabbar-item>
      </van-tabbar>
    </div>
  </div>
</template>
<script setup>
import { ref } from 'vue';
const active = ref(0);
</script>
<style lang="scss">
  *{
    padding: 0;
    margin: 0;
    list-style: none;
  }
  html,
  body,
  #app,
  .da{
    width: 100%;
    height: 100%;
  }
.da{
  display: flex;
  flex: 1;
  flex-direction: column;
}
.da{
  flex: 1;
}
.box{
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
}
.header{
  height: 50px;
}
.footer{
  height: 50px;
}
</style>
